import { http } from './request.js';

// 验证码相关API
export const captchaApi = {
    // 获取验证码
    getCaptcha() {
        return http.get('/captcha/getCaptcha');
    },

    // 验证验证码
    checkCaptcha(data) {
        return http.post('/captcha/check', data);
    },

    // 发送短信验证码
    sendSmsCode(phone) {
        return http.post('/captcha/sms', { phone });
    },

    // 验证短信验证码
    verifySmsCode(data) {
        return http.post('/captcha/verify-sms', data);
    }
}; 